Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vw addons #137

Merged
merged 15 commits into from
May 22, 2024
Merged

Vw addons #137

merged 15 commits into from
May 22, 2024

Conversation

kupermind
Copy link
Collaborator

  • Adding view functions for removed nominees;
  • Correcting variable names, natspecs, comments.

@kupermind kupermind requested review from 77ph and mariapiamo May 17, 2024 19:05
Comment on lines +162 to +163
// Set of removed Nominee structs
Nominee[] public setRemovedNominees;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a set to push removed nominees.

/// @dev Get the total number of removed nominees.
/// @notice The zero-th default nominee Id with id == 0 does not count.
/// @return Total number of removed nominees.
function getNumRemovedNominees() external view returns (uint256) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number of removed nominees.

/// @dev Gets a full set of removed nominees.
/// @notice The returned set includes the zero-th empty nominee instance.
/// @return Set of all the removed nominees in the contract.
function getAllRemovedNominees() external view returns (Nominee[] memory) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple getter for the set of removed nominees.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you

/// @dev Gets a full set of removed nominees.
/// @notice The returned set includes the zero-th empty nominee instance.
/// @return Set of all the removed nominees in the contract.
function getAllRemovedNominees() external view returns (Nominee[] memory) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you

mariapiamo
mariapiamo previously approved these changes May 20, 2024
Base automatically changed from addressing_internal_audit to main May 20, 2024 14:46
@kupermind kupermind dismissed mariapiamo’s stale review May 20, 2024 14:46

The base branch was changed.

@kupermind kupermind merged commit 7b2ec39 into main May 22, 2024
2 checks passed
@kupermind kupermind deleted the vw_addons branch May 22, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants